package entity;

public class Book {

	private String bid, name, author;
	private float price;
	private int number;
	private Category category;
	
	
	public Book(String bid, String name, String author, float price, int number, Category category) {
		super();
		this.bid = bid;
		this.name = name;
		this.author = author;
		this.price = price;
		this.number = number;
		this.category = category;
	}
	
	public Book(String bid, String name, String author) {
		super();
		this.bid = bid;
		this.name = name;
		this.author = author;
	}
	
	public String getBid() {
		return bid;
	}
	public void setBid(String bid) {
		this.bid = bid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return  bid + ":" + name + ":" + author + ":" + price + ":" + number + ":" + category;
	}
	
}

